home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
JCSM Shareware Collection 1996 September
/
JCSM Shareware Collection (JCS Distribution) (September 1996).ISO
/
tutorial
/
trac.zip
/
FIGIII-8.TRA
< prev
next >
Wrap
Text File
|
1990-01-25
|
768b
|
26 lines
0999 0 Origin
OP 0
X 0
Y 0
Z 0
0 Dummy included to reserve read space
ONE 1 Constant one
STRT RD OP Read OP, X, Y
LD OP Load OP
SU ONE Find difference for test
BNSTOP If < 1 go to halt
BZ ADD If = 1 go to add routine
SU ONE If > 1 see if it is 2
BZ SUB If = 2 go to subtract
STOP HT0000 If not stop
SUB LD X Load X
SU Y Subtract Y
ST Z Store at Z
BUPRNT Go to print
ADD LD X Load X
AD Y Add Y
ST Z Store at Z
PRNT PC OP Print
BUSTRT Go back to start
ENSTRT End of code with starting location